package com.bestcem.xm.member.grpc.service.param.extendfield;

import com.bestcem.xm.member.enums.ExtendFieldTypeEnum;
import com.bestcem.xm.member.enums.MemberTypeEnum;
import lombok.*;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description TODO
 * @date 2021/7/21
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class InsertFieldParam {
    /**
     * 扩展字段名
     */
    @NotBlank(message = "扩展字段名称不存在")
    private String name;

    /**
     * 联系人类型
     */
    @NotNull(message = "联系人类型异常")
    private MemberTypeEnum memberTypeEnum;

    /**
     * 扩展字段类型
     */
    @NotNull(message = "扩展字段类型异常")
    private ExtendFieldTypeEnum extendFieldTypeEnum;

    /**
     * 枚举选项
     */
    @Valid
    private List<InsertEnumItemParam> insertEnumItemParams;
}
